package at.chl.genetic.function.math.types;

import at.chl.genetic.function.math.ifstatement.IIfStatement;
import at.chl.genetic.function.math.request.IIfStatementRequest;

public enum IfStatementType implements IIfStatement{

	BIGGER{
		public Boolean calculate(IIfStatementRequest request){
			return request.getX()>request.getY();
		}
	},
	LESSER{
		public Boolean calculate(IIfStatementRequest request){
			return request.getX()<request.getY();
		}
	},
	EQUAL{
		public Boolean calculate(IIfStatementRequest request){
			return request.getX()==request.getY();
		}
	};
	
	public String getStatementName(){
		return this.toString();
	}
	
	
}
